package com.ugoodtech.mdcc.core.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Xiangcheng Li
 *
 * @author Xiangcheng Li
 */

@Data
@NoArgsConstructor
public class MinipAuthRestResponse extends JsonResponse{
    private String token;

    private String jwt;

    public static MinipAuthRestResponse ok(MinipAuthResponse data) {
        MinipAuthRestResponse minipAuthRestResponse = new MinipAuthRestResponse();
        minipAuthRestResponse.setData(data);
        minipAuthRestResponse.setSuccess(true);
        return minipAuthRestResponse;
    }

}
